package com.github.od.rest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.github.od.biz.UserBiz;
import com.github.od.context.BaseContextHandler;
import com.github.od.entity.User;

/**
 * 用户Rest
 *
 * @author xieweikun
 * @Date 2017/11/14 14:36
 */
@RestController
@RequestMapping("user")
public class UserRest extends BaseController<UserBiz, User> {

	@RequestMapping("/who")
	public String getCurrrentUser() {
		return BaseContextHandler.getUserName();
	}
	
}
